/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package nodeLevelMetaModel.impl;

import nodeLevelMetaModel.AggregationTask;
import nodeLevelMetaModel.NodeLevelMetaModelPackage;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Aggregation Task</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link nodeLevelMetaModel.impl.AggregationTaskImpl#getInputDataType <em>Input Data Type</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class AggregationTaskImpl extends OperationalTaskImpl implements AggregationTask {
	/**
	 * The default value of the '{@link #getInputDataType() <em>Input Data Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getInputDataType()
	 * @generated
	 * @ordered
	 */
	protected static final String INPUT_DATA_TYPE_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getInputDataType() <em>Input Data Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getInputDataType()
	 * @generated
	 * @ordered
	 */
	protected String inputDataType = INPUT_DATA_TYPE_EDEFAULT;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected AggregationTaskImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return NodeLevelMetaModelPackage.Literals.AGGREGATION_TASK;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getInputDataType() {
		return inputDataType;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setInputDataType(String newInputDataType) {
		String oldInputDataType = inputDataType;
		inputDataType = newInputDataType;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, NodeLevelMetaModelPackage.AGGREGATION_TASK__INPUT_DATA_TYPE, oldInputDataType, inputDataType));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case NodeLevelMetaModelPackage.AGGREGATION_TASK__INPUT_DATA_TYPE:
				return getInputDataType();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case NodeLevelMetaModelPackage.AGGREGATION_TASK__INPUT_DATA_TYPE:
				setInputDataType((String)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case NodeLevelMetaModelPackage.AGGREGATION_TASK__INPUT_DATA_TYPE:
				setInputDataType(INPUT_DATA_TYPE_EDEFAULT);
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case NodeLevelMetaModelPackage.AGGREGATION_TASK__INPUT_DATA_TYPE:
				return INPUT_DATA_TYPE_EDEFAULT == null ? inputDataType != null : !INPUT_DATA_TYPE_EDEFAULT.equals(inputDataType);
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy()) return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (inputDataType: ");
		result.append(inputDataType);
		result.append(')');
		return result.toString();
	}

} //AggregationTaskImpl
